import request from '@/utils/request'

// 查询仪器报警信息记录列表
export function listAlarmRecord(query) {
  return request({
    url: '/instrument/alarmRecord/list',
    method: 'get',
    params: query
  })
}

// 查询仪器报警信息记录详细
export function getAlarmRecord(id) {
  return request({
    url: '/instrument/alarmRecord/' + id,
    method: 'get'
  })
}

// 新增仪器报警信息记录
export function addAlarmRecord(data) {
  return request({
    url: '/instrument/alarmRecord',
    method: 'post',
    data: data
  })
}

// 修改仪器报警信息记录
export function updateAlarmRecord(data) {
  return request({
    url: '/instrument/alarmRecord',
    method: 'put',
    data: data
  })
}

// 删除仪器报警信息记录
export function delAlarmRecord(id) {
  return request({
    url: '/instrument/alarmRecord/' + id,
    method: 'delete'
  })
}

// 导出仪器报警信息记录
export function exportAlarmRecord(query) {
  return request({
    url: '/instrument/alarmRecord/export',
    method: 'get',
    params: query
  })
}